package com.itheima;

import com.itheima.config.SpringConfig;
import com.itheima.service.impl.BookServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author げっしょく
 * @date 2021/9/12
 */
public class App2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookServiceImpl bean = ctx.getBean(BookServiceImpl.class);

        bean.save();
    }
}
